package com.mb.framework.web.filter;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.filter.AbstractRequestLoggingFilter;

public class RequestLoggerFilter extends AbstractRequestLoggingFilter {
	public RequestLoggerFilter() {
		super.setMaxPayloadLength(Integer.MAX_VALUE);
	}

	@Override
	protected void afterRequest(HttpServletRequest arg0, String arg1) {
		SingletonLogger.getInstance().info(arg1);
	}

	@Override
	protected void beforeRequest(HttpServletRequest arg0, String arg1) {
		return;
	}}
